<h2>Add New Entry</h2>


<table cellpadding="1" class="datatable">
<?php echo form_open('blogadmin/add_new_entry');?>
  <tr>
  	<th>Entry Name</th>
  	<td><?php echo form_input('entry_name');?></td>
  </tr>
  <tr>
  <td colspan="2"><textarea cols="77" rows="20" id="entry_content" name="entry_content"></textarea></td>
  </tr>
  <tr>
    <th>Entry Basename</th>
    <td><?php echo form_input('entry_basename');?></td>
  </tr>
  <tr>
    <th>Entry Author</th>
    <td><?php echo form_input('entry_author',$this->session->userdata('username'));?></td>
  </tr>
  <tr>
    <th>Entry Date</th>
    <td><?php echo form_input('entry_date', date('Y-m-d'));?></td>
  </tr>
  <tr>
    <th>Entry Parent Category</th>
    <td>
    	<select	id="entry_category_parent" name="entry_category_parent">
    		<option value="1" selected="selected">NONE</option>
    		<?php foreach ($records as $rows){?>
    		<option value="<?php echo $rows->category_id;?>"><?php echo $rows->category_name;?></option>
    		<?php }?>
    	</select>
    </td>
   
  </tr>
   <tr>
   		<td colspan="2"><?php echo form_submit('submit','Save New Entry');?></td>
   </tr>
<?php echo form_close();?>
</table>


